//
//  PhotoAction.h
//  XPhoto
//
//  Created by baboy on 2019/7/5.
//  Copyright © 2019 baboy. All rights reserved.
//

#import "Model.h"

NS_ASSUME_NONNULL_BEGIN

#define API_POST_ACTION_ADD_LIKE    @"post_action_add_like"
#define API_POST_ACTION_ADD_FAV     @"post_action_add_fav"
#define API_POST_ACTION_ADD_SHARE   @"post_action_add_share"

@interface PostAction : Model

@property(nonatomic, assign) NSInteger id;
@property(nonatomic, assign) NSInteger postId;
@property(nonatomic, assign) NSInteger uid;
@property(nonatomic, assign) NSDate *createTime;


+ (id)addLike:(PostAction*)action callback:(nullable void (^)(id _Nonnull task, id _Nullable json,  NSError * _Nullable error))callback;
+ (id)addShare:(PostAction*)action callback:(nullable void (^)(id _Nonnull task, id _Nullable json,  NSError * _Nullable error))callback;
+ (id)addFav:(PostAction*)action callback:(nullable void (^)(id _Nonnull task, id _Nullable json,  NSError * _Nullable error))callback;
@end

NS_ASSUME_NONNULL_END
